package com.click369.crm.service;

import java.util.List;

import com.click369.crm.pojo.CDept;
import com.click369.crm.pojo.CPosition;
import com.github.pagehelper.PageInfo;

/**
 * 通用接口
 * @author Administrator
 *
 */
public interface BaseService<T> {
	//添加
	public void save(T t);
	//根据id删除
	public void delete(Integer id);
	//修改
	public void update(T t);
	//查询所有分页
	public PageInfo<T> select(Integer page,Integer rows,T t);
	//根据id查询
	public T getById(Integer id);
}
